<%@ page language="java" contentType="text/html;charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="com.sms.user.*"%>

<%--
	people/teacher/del-people.jsp
 --%>

<%
	String msg = "";
	String delno = request.getParameter("selectrows");
	String[] delNo = delno.split(",");
	
	if(delNo.length == 0) {
		msg = "error";
	} else {
		boolean isSuccess = User.delPeople(delNo);//is delete success?
		if(isSuccess) {
			msg = "ok";
		} else {
			msg = "error";
		}
	}
	
	msg = msg.replace("/rn/g", "");//去掉产生的换行
	out.clear();
	out.write(msg);
%>